export default {
	name: 'PageRouterView',
	props: {
		name: {type: String, required: true}
	},
	data() {
		return {}
	},
	render(createElement, context) {
		if (this.$route.name !== this.name) {
			return (<router-view/>)
		} else {
			return createElement('div',{attrs: {class: 'md-page-router-view'}}, [this.$slots.default])
		}
	}
}